<!doctype html>



  


<html class="theme-next muse use-motion">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />












  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  
    
      
    

    
  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Microsoft YaHei:300,300italic,400,400italic,700,700italic|consolas:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.0.2" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="HongqinMa, Hiraku, web前端, web全栈, javascript, html, css, nodejs" />








  <link rel="shortcut icon" type="image/x-icon" href="http://ofy7k3v4s.bkt.clouddn.com/mylogo.png?v=5.0.2" />






<meta name="description" content="Spell at all costs， to rush you in the future.">
<meta property="og:type" content="website">
<meta property="og:title" content="HongqinMa' Blog">
<meta property="og:url" content="https://hongqinma.github.io/page/5/index.html">
<meta property="og:site_name" content="HongqinMa' Blog">
<meta property="og:description" content="Spell at all costs， to rush you in the future.">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="HongqinMa' Blog">
<meta name="twitter:description" content="Spell at all costs， to rush you in the future.">



<script type="text/javascript" id="hexo.configuration">
  var NexT = window.NexT || {};
  var CONFIG = {
    scheme: 'Muse',
    sidebar: {"position":"left","display":"post"},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '6347850919329138000',
      author: 'Hiraku'
    }
  };
</script>




  <link rel="canonical" href="https://hongqinma.github.io/page/5/"/>


  <title> HongqinMa' Blog </title>
</head>

<body itemscope itemtype="//schema.org/WebPage" lang="en">

  



  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "//hm.baidu.com/hm.js?10010323";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>








  
  
    
  

  <div class="container one-collumn sidebar-position-left 
   page-home 
 ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="//schema.org/WPHeader">
      <div class="header-inner"><div class="site-meta custom-logo">
  
    <div class="site-meta-headline">
      <a>
        <img class="custom-logo-image" src="http://ofy7k3v4s.bkt.clouddn.com/photo.jpg"
             alt="HongqinMa' Blog"/>
      </a>
    </div>
  

  <div class="custom-logo-site-title">
    <a href="/"  class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <span class="site-title">HongqinMa' Blog</span>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>
  <p class="site-subtitle">Spell at all costs， to rush you in the future。</p>
</div>

<div class="site-nav-toggle">
  <button>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
    <span class="btn-bar"></span>
  </button>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            Categories
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            About
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            Tags
          </a>
        </li>
      

      
    </ul>
  

  
</nav>

 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            
  <section id="posts" class="posts-expand">
    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/01/22/CSS3知识体系/" itemprop="url">
                  CSS3知识体系
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-01-22T20:44:09+08:00" content="2015-01-22">
              2015-01-22
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/CSS3/" itemprop="url" rel="index">
                    <span itemprop="name">CSS3</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/01/22/CSS3知识体系/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/01/22/CSS3知识体系/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x79C1;&#x6709;&#x524D;&#x7F00;
&#x5728;pc&#x7AEF;&#x5F00;&#x53D1;&#x7684;&#x65F6;&#x5019;  &#x4F7F;&#x7528;css3&#x5C5E;&#x6027;  &#x6700;&#x597D;&#x52A0;&#x4E0A;&#x79C1;&#x6709;&#x524D;&#x7F00;


-webkit-border-radius: 50%;
&#x8C37;&#x6B4C;


-moz-border-radius: 50%;
&#x706B;&#x72D0;


-o-border-radius: 50%;
&#x6B27;&#x9E4F;


-ms-border-radius:50%;
IE




&#x9009;&#x62E9;&#x5668;&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x5668;
[attribute]
&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20;


[attribute=value] 
&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#x6027;&#x7684;&#x5143;&#x7D20; &#x5E76;&#x4E14;&#x5C5E;&#x6027;&#x503C; &#x53EA;&#x80FD;&#x7B49;&#x4E8E;value


[attribute!=value] 
jquery&#x624D;&#x6709;&#xFF0C;css &#x662F;&#x6CA1;&#x6709;&#x8FD9;&#x4E2A;&#x9009;&#x62E9;&#x5668; &#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5305;&#x542B; attribute &#x8FD9;&#x4E2A;&#x5C5E;&#
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/01/22/CSS3知识体系/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/01/20/Built-Hexo-Blog/" itemprop="url">
                  Hexo博客搭建
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-01-20T22:37:57+08:00" content="2015-01-20">
              2015-01-20
            </time>
          </span>

          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/01/20/Built-Hexo-Blog/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/01/20/Built-Hexo-Blog/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          Hexo+github&#x53EF;&#x4EE5;&#x968F;&#x5FC3;&#x6240;&#x6B32;&#x7684;&#x90E8;&#x7F72;&#x5C5E;&#x4E8E;&#x81EA;&#x5DF1;&#x7684;&#x535A;&#x5BA2;&#x3002;
Hexo &#x535A;&#x5BA2;&#x642D;&#x5EFA;&#x6B65;&#x9AA4;&#x642D;&#x5EFA;&#x535A;&#x5BA2;&#xFF0C;&#x9996;&#x5148;&#x9700;&#x8981;&#x5B89;&#x88C5; node &#x73AF;&#x5883;&#xFF1B;
&#x6D4B;&#x8BD5;&#x5B89;&#x88C5;&#x6210;&#x529F;&#x4E0E;&#x5426;&#xFF1A;&#x6253;&#x5F00;&#x7EC8;&#x7AEF;&#xFF0C;&#x8F93;&#x5165; node -v, &#x6709;&#x8F93;&#x51FA;&#x7248;&#x672C;&#x7ED3;&#x679C;&#x5219;&#x5B89;&#x88C5;&#x6210;&#x529F;&#x3002;
&#x5B89;&#x88C5;node&#x73AF;&#x5883;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5DF2;&#x7ECF;&#x81EA;&#x52A8;&#x5B89;&#x88C5;&#x4E86; npm &#x547D;&#x4EE4;&#x884C;&#x5DE5;&#x5177;&#xFF0C;&#x4E0D;&#x9700;&#x8981;&#x5355;&#x72EC;&#x5B89;&#x88C5;&#x3002;
&#x53EF;&#x4EE5;&#x901A;&#x8FC7; npm -v &#x6D4B;&#x8BD5;npm&#x662F;&#x5426;&#x53EF;&#x7528;

npm &#x662F;&#x4E00;&#x4E2A;&#x7528;&#x6765;&#x5B89;&#x88C5;&#x548C;&#x7BA1;&#x7406; Node &#x5305;&#x5
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/01/20/Built-Hexo-Blog/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2015/01/15/23-Ajax/" itemprop="url">
                  Ajax
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2015-01-15T20:42:09+08:00" content="2015-01-15">
              2015-01-15
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/JavaScript/" itemprop="url" rel="index">
                    <span itemprop="name">JavaScript</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2015/01/15/23-Ajax/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2015/01/15/23-Ajax/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x670D;&#x52A1;&#x5668;&#x3001;&#x7F51;&#x7EDC;&#x57FA;&#x7840;&#x3001;&#x76F8;&#x5173;&#x77E5;&#x8BC6;&#x4ECB;&#x7ECD;&#x670D;&#x52A1;&#x5668;&#x4ECB;&#x7ECD;&#xFF1A;&#x5E38;&#x89C1;&#x7684;&#x670D;&#x52A1;&#x5668;&#x8F6F;&#x4EF6;&#x6709;&#xFF1A;
&#x6587;&#x4EF6;&#x670D;&#x52A1;&#x5668;&#xFF1A;Server-U&#x3001;FileZilla&#x3001;VsFTP&#x7B49;&#xFF08;FTP&#x662F;File Transfer Protocol&#x6587;&#x4EF6;&#x4F20;&#x8F93;&#x534F;&#x8BAE;&#xFF09;&#xFF1B;
&#x6570;&#x636E;&#x5E93;&#x670D;&#x52A1;&#x5668;&#xFF1A;oracle&#x3001;mysql&#x3001;SQL server&#x3001;DB2&#x3001;ACCESS&#x7B49;&#xFF1B;
&#x90AE;&#x4EF6;&#x670D;&#x52A1;&#x5668;&#xFF1A;Postfix&#x3001;Sendmail&#x7B49;&#xFF1B;
HTTP&#x670D;&#x52A1;&#x5668;&#xFF1A;Apache&#x3001;Nginx&#x3001;IIS&#x3001;Tomcat&#x3001;NodeJS&#x7B49;&#xFF1B;


&#x6309;&#x7167;&#x4E0D;&#x540C;&#x7684;&#x5212;&#x5206;&#x6807;&#x51C6;&#xFF0C;&#x670D;&#x52A1;&#x53EF;&#x5212;&#x5206;&#x4E3A;&#x4EE5;&#x4E0B;&#x7C7B;&#x578B;&#xFF1A;

(1) &#x670D;&#x52A1;&#x5668;&#x7C7B;&#x578B;

          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2015/01/15/23-Ajax/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/12/17/22-JSON/" itemprop="url">
                  JSON 数据
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2014-12-17T21:25:32+08:00" content="2014-12-17">
              2014-12-17
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/JavaScript/" itemprop="url" rel="index">
                    <span itemprop="name">JavaScript</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/12/17/22-JSON/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/12/17/22-JSON/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          JSON (JavaScript Object Notion, JavaScript &#x5BF9;&#x8C61;&#x8868;&#x793A;&#x6CD5;)
JSON &#x662F; JavaScript &#x7684;&#x4E00;&#x4E2A;&#x4E25;&#x683C;&#x7684;&#x5B50;&#x96C6;&#xFF0C;&#x5B83;&#x662F;&#x4E00;&#x79CD;&#x6570;&#x636E;&#x683C;&#x5F0F;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x4E00;&#x79CD;&#x7F16;&#x7A0B;&#x8BED;&#x8A00;&#x3002;
&#x8BED;&#x6CD5;JSON &#x8BED;&#x6CD5;&#x53EF;&#x4EE5;&#x8868;&#x793A;&#x4EE5;&#x4E0B;&#x4E09;&#x79CD;&#x7C7B;&#x578B;&#x7684;&#x503C;&#xFF1A;
&#x7B80;&#x5355;&#x503C;&#xFF1A;&#x4F7F;&#x7528; JavaScript &#x76F8;&#x540C;&#x7684;&#x8BED;&#x6CD5;&#xFF0C;&#x53EF;&#x4EE5;&#x5728; JSON &#x4E2D;&#x8868;&#x793A;&#x5B57;&#x7B26;&#x4E32;&#x3001;&#x6570;&#x503C;&#x3001;&#x5E03;&#x5C14;&#x503C;&#x548C; null&#xFF0C;&#x4E0D;&#x652F;&#x6301; undefined&#x3002;
&#x5BF9;&#x8C61;&#xFF1A;&#x5BF9;&#x8C61;&#x4F5C;&#x4E3A;&#x4E00;&#x79CD;&#x590D;&#x6742;&#x6570;&#x636E;&#x7C7B;&#x578B;&#xFF0C;&#x8868;&#x793A;&#x7684;&#x662F;&#x4E00;&#x7EC4;&#x65E0;&#x5E8F;&#x7684;&#x952E;&#x503C;&
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2014/12/17/22-JSON/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/12/05/21-jQuery/" itemprop="url">
                  jQuery
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2014-12-05T22:41:02+08:00" content="2014-12-05">
              2014-12-05
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/jQuery/" itemprop="url" rel="index">
                    <span itemprop="name">jQuery</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/12/05/21-jQuery/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/12/05/21-jQuery/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x4F7F;&#x7528; CSS &#x9009;&#x62E9;&#x5668;&#x6765;&#x8BC6;&#x522B;&#x4E00;&#x7EC4;&#x6587;&#x6863;&#x5143;&#x7D20;&#xFF0C;&#x5E76;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;&#x8868;&#x793A;&#x8FD9;&#x4E9B;&#x5143;&#x7D20;&#x3002;&#x8FD4;&#x56DE;&#x7684;&#x5BF9;&#x8C61;&#x63D0;&#x4F9B;&#x4E86;&#x5927;&#x91CF;&#x7684;&#x65B9;&#x6CD5;&#x6765;&#x6279;&#x91CF;&#x64CD;&#x4F5C;&#x5339;&#x914D;&#x7684;&#x5143;&#x7D20;&#x3002;
jQuery&#x524D;&#x620F;js&#x4E0D;&#x8DB3;
&#x4EE3;&#x7801;&#x5F88;&#x9EBB;&#x70E6;&#xFF0C;&#x5197;&#x4F59;
&#x6D4F;&#x89C8;&#x5668;&#x517C;&#x5BB9;&#x6027;&#x95EE;&#x9898;
&#x5165;&#x53E3;&#x51FD;&#x6570;&#x53EA;&#x80FD;&#x5199;&#x4E00;&#x4E2A;&#xFF0C;&#x5199;&#x4E86;&#x591A;&#x4E2A;&#xFF0C;&#x540E;&#x9762;&#x7684;&#x4F1A;&#x8986;&#x76D6;&#x524D;&#x9762;&#x7684;&#x95EE;&#x9898;
js&#x7684;&#x4EE3;&#x7801;&#x5BB9;&#x9519;&#x6027;&#x6BD4;&#x8F83;&#x5DEE;&#xFF08;&#x6BD4;&#x8F83;&#x5BB9;&#x6613;&#x51FA;&#x9519;&#xFF09;
&#x5B9E;&#x73B0;&#x4E00;&#x4E9B;&#x7B80;&#x5355;&#x
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2014/12/05/21-jQuery/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/11/18/20-canvas/" itemprop="url">
                  canvas
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2014-11-18T21:03:12+08:00" content="2014-11-18">
              2014-11-18
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/HTML5/" itemprop="url" rel="index">
                    <span itemprop="name">HTML5</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/11/18/20-canvas/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/11/18/20-canvas/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          &#x4EC0;&#x4E48;&#x662F; Canvascanvas &#x662F; HTML5 &#x63D0;&#x4F9B;&#x7684;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x5C55;&#x793A;&#x7ED8;&#x56FE;&#x6548;&#x679C;&#x7684;&#x6807;&#x7B7E;. canvas &#x539F;&#x610F;&#x753B;&#x5E03;, &#x5E06;&#x5E03;.&#x5728; HTML &#x9875;&#x9762;&#x4E2D;&#x7528;&#x4E8E;&#x5C55;&#x793A;&#x7ED8;&#x56FE;&#x6548;&#x679C;. &#x6700;&#x65E9; canvas &#x662F;&#x82F9;&#x679C;&#x63D0;&#x51FA;&#x7684;&#x4E00;&#x4E2A;&#x65B9;&#x6848;, &#x4ECA;&#x5929;&#x5DF2;&#x7ECF;&#x5728;&#x5927;&#x591A;&#x6570;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x5B9E;&#x73B0;.
canvas &#x7684;&#x57FA;&#x672C;&#x7528;&#x6CD5;
&#x57FA;&#x672C;&#x8BED;&#x6CD5;

1&lt;canvas&gt;&lt;/canvas&gt;

&#x4F7F;&#x7528; canvas &#x6807;&#x7B7E;, &#x5373;&#x53EF;&#x5728;&#x9875;&#x9762;&#x4E2D;&#x5F00;&#x8F9F;&#x4E00;&#x683C;&#x533A;&#x57DF;. &#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5176; width &#x548C; height &#x8BBE;&#x7F6E;&#x8BE5;&#x533A;&#x57DF;&#x7684;&#x5C3A;&#x5BF8;.
&#x9ED8;&#x8BA4; canvas &#x7684;&#x5BBD;&#x9AD8;&#x4
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2014/11/18/20-canvas/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/10/28/19-js-的表单/" itemprop="url">
                  js 的表单
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2014-10-28T23:21:51+08:00" content="2014-10-28">
              2014-10-28
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/JavaScript/" itemprop="url" rel="index">
                    <span itemprop="name">JavaScript</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/10/28/19-js-的表单/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/10/28/19-js-的表单/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          JavaScript &#x6700;&#x521D;&#x7684;&#x4E00;&#x4E2A;&#x5E94;&#x7528;&#x5C31;&#x662F;&#x5206;&#x62C5;&#x670D;&#x52A1;&#x5668;&#x5904;&#x7406;&#x8868;&#x5355;&#x7684;&#x8D23;&#x4EFB;&#xFF0C;&#x6253;&#x7834;&#x5904;&#x5904;&#x4F9D;&#x8D56;&#x670D;&#x52A1;&#x5668;&#x7684;&#x5C40;&#x9650;&#x3002;
&#x8868;&#x5355;&#x57FA;&#x7840;HTML &#x4E2D;&#x8868;&#x5355;&#x662F;&#x7531; &lt;form&gt; &#x5143;&#x7D20;&#x6765;&#x8868;&#x793A;&#x7684;&#x3002;&#x5728; JavaScript &#x4E2D;&#xFF0C;&#x8868;&#x5355;&#x5BF9;&#x5E94;&#x7684;&#x5219;&#x662F; HTMLFormElement &#x7C7B;&#x578B;&#x3002;&#x6709;&#x4E0B;&#x5217;&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;&#x3002;

acceptCharset: &#x670D;&#x52A1;&#x5668;&#x80FD;&#x591F;&#x5904;&#x7406;&#x7684;&#x5B57;&#x7B26;&#x4E32;
action: &#x63A5;&#x6536;&#x8BF7;&#x6C42;&#x7684; URL
elements: &#x8868;&#x5355;&#x4E2D;&#x6240;&#x6709;&#x63A7;&#x4EF6;&#x7684;&#x96C6;&#x5408;
enctype: &#x8BF7;&#x6C42;&#x7684;&#x7F16;&#x7801;&#x7C7B;&#x578B;
length: &#x8868;&#x5355;&#x4E2D;&#x6240;
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2014/10/28/19-js-的表单/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/10/14/18-js-的事件/" itemprop="url">
                  js 的事件
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2014-10-14T20:49:24+08:00" content="2014-10-14">
              2014-10-14
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/JavaScript/" itemprop="url" rel="index">
                    <span itemprop="name">JavaScript</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/10/14/18-js-的事件/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/10/14/18-js-的事件/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          JavaScript &#x4E0E; HTML &#x4E4B;&#x95F4;&#x7684;&#x4EA4;&#x4E92;&#x662F;&#x901A;&#x8FC7; &#x4E8B;&#x4EF6; &#x5B9E;&#x73B0;&#x7684;&#x3002;&#x4E8B;&#x4EF6;&#x4E09;&#x8981;&#x7D20;: &#x4E8B;&#x4EF6;&#x6E90;.&#x4E8B;&#x4EF6; = function(){ &#x4E8B;&#x4EF6;&#x5904;&#x7406;&#x7A0B;&#x5E8F; }&#xFF1B;&#x7B49;&#x4EF7;&#x4E8E; &lt;&#x6807;&#x7B7E; &#x4E8B;&#x4EF6;= &#x201C;&#x4E8B;&#x4EF6;&#x5904;&#x7406;&#x7A0B;&#x5E8F;&#x201D;&gt;&#x3002;
&#x4E8B;&#x4EF6;&#x5C31;&#x662F;&#x6587;&#x6863;&#x6216;&#x6D4F;&#x89C8;&#x5668;&#x7A97;&#x53E3;&#x4E2D;&#x53D1;&#x751F;&#x7684;&#x4E00;&#x4E9B;&#x7279;&#x5B9A;&#x4EA4;&#x4E92;&#x77AC;&#x95F4;&#x3002;&#x5305;&#x62EC;&#x4E8B;&#x4EF6;&#x7C7B;&#x578B;&#x3001;&#x4E8B;&#x4EF6;&#x76EE;&#x6807;&#x3001;&#x4E8B;&#x4EF6;&#x5904;&#x7406;&#x7A0B;&#x5E8F;&#x3001;&#x4E8B;&#x4EF6;&#x5BF9;&#x8C61;&#x3002;
&#x4E8B;&#x4EF6;&#x7C7B;&#x578B;&#x662F;&#x7528;&#x8FC7;&#x7528;&#x6765;&#x8BF4;&#x660E;&#x53D1;&#x751F;&#x4EC0;&#x4E48;&#x7C7B;&#x578B;&#x4E8B;&#x4EF6;&#x7684;&#x5B57;&#x
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2014/10/14/18-js-的事件/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/09/22/17-DOM-文档对象模型/" itemprop="url">
                  DOM-文档对象模型
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2014-09-22T21:13:42+08:00" content="2014-09-22">
              2014-09-22
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/JavaScript/" itemprop="url" rel="index">
                    <span itemprop="name">JavaScript</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/09/22/17-DOM-文档对象模型/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/09/22/17-DOM-文档对象模型/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          DOM &#x662F;&#x9488;&#x5BF9; HTML &#x548C; XML &#x6587;&#x6863;&#x7684;&#x4E00;&#x4E2A; API&#x3002; DOM &#x63CF;&#x7ED8;&#x4E86;&#x4E00;&#x4E2A;&#x5C42;&#x6B21;&#x5316;&#x7684;&#x8282;&#x70B9;&#x6811;&#x3002; HTML &#x6587;&#x6863;&#x7684;&#x6811;&#x5F62;&#x7ED3;&#x6784;&#x5305;&#x542B;&#x8868;&#x793A; HTML &#x6807;&#x7B7E;&#x6216;&#x5143;&#x7D20;&#x548C;&#x8868;&#x793A;&#x6587;&#x672C;&#x5B57;&#x7B26;&#x4E32;&#x7684;&#x8282;&#x70B9;&#xFF0C;&#x5B83;&#x4E5F;&#x53EF;&#x80FD;&#x5305;&#x62EC;&#x8868;&#x793A; HTML &#x6CE8;&#x91CA;&#x8282;&#x70B9;&#x3002;
DOM&#x57FA;&#x672C;&#x6982;&#x5FF5;DOM &#x63CF;&#x8FF0;
DOM Document Object Model &#x6587;&#x6863;&#x5BF9;&#x8C61;&#x6A21;&#x578B;
&#x5C31;&#x662F;&#x628A;HTML&#x6587;&#x6863;&#x6A21;&#x578B;&#x5316;&#xFF0C;&#x5F53;&#x4F5C;&#x5BF9;&#x8C61;&#x6765;&#x5904;&#x7406;
DOM&#x63D0;&#x4F9B;&#x7684;&#x4E00;&#x7CFB;&#x5217;&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;&#x53EF;&#x4EE5;&#x89C6;&#x4F5C;&#x4E00;&#x4E2A;&#x5DE5;&#x5177;&#x7BB1;&#xFF0C;&#x6781;&#
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2014/09/22/17-DOM-文档对象模型/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
      

  
  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="//schema.org/Article">

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                
                <a class="post-title-link" href="/2014/08/15/16-BOM-浏览器对象模型/" itemprop="url">
                  BOM-浏览器对象模型
                </a>
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            <span class="post-meta-item-icon">
              <i class="fa fa-calendar-o"></i>
            </span>
            <span class="post-meta-item-text">Posted on</span>
            <time itemprop="dateCreated" datetime="2014-08-15T22:26:39+08:00" content="2014-08-15">
              2014-08-15
            </time>
          </span>

          
            <span class="post-category" >
              &nbsp; | &nbsp;
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">In</span>
              
                <span itemprop="about" itemscope itemtype="https://schema.org/Thing">
                  <a href="/categories/JavaScript/" itemprop="url" rel="index">
                    <span itemprop="name">JavaScript</span>
                  </a>
                </span>

                
                

              
            </span>
          

          
            
              <span class="post-comments-count">
                &nbsp; | &nbsp;
                <a href="/2014/08/15/16-BOM-浏览器对象模型/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count ds-thread-count" data-thread-key="2014/08/15/16-BOM-浏览器对象模型/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          

          

          

          
        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        
          
          DOM:&#x4E2D;&#x7684;&#x9876;&#x7EA7;&#x5BF9;&#x8C61;&#x662F;document&#x2014;-&#x592A;&#x76D1;(&#x5927;&#x603B;&#x7BA1;);BOM:&#x4E2D;&#x7684;&#x9876;&#x7EA7;&#x5BF9;&#x8C61;&#x662F;window&#x2014;&#x2014;&#x7687;&#x4E0A;;&#x6574;&#x4E2A;&#x6D4F;&#x89C8;&#x5668;&#x5C31;&#x662F;window,&#x9875;&#x9762;&#x4E2D;&#x7684;document&#x4E5F;&#x5C5E;&#x4E8E;window

&#x53D8;&#x91CF;,&#x51FD;&#x6570;,&#x5BF9;&#x8C61;&#x90FD;&#x5C5E;&#x4E8E;window
&#x4F46;&#x662F;:&#x5199;&#x4EE3;&#x7801;&#x7684;&#x65F6;&#x5019;,window&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x7701;&#x7565;

window &#x5BF9;&#x8C61;BOM&#xFF0C;&#x5373;&#x6D4F;&#x89C8;&#x5668;&#x5BF9;&#x8C61;&#x6A21;&#x578B;&#xFF0C;&#x6838;&#x5FC3;&#x662F;&#xFF1A;window &#x5BF9;&#x8C61;
&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x4E0D;&#x80FD;&#x901A;&#x8FC7; delete &#x64CD;&#x4F5C;&#x7B26;&#x5220;&#x9664;&#x3002; 
&#x7A97;&#x53E3;&#x5173;&#x7CFB;&#x53CA;&#x6846;&#x67B6;&#x5982;&#x679C;&#x9875;&#x9762;&#x4E2D;&#x5305;&#x542B;&#x6846;&#x67B6
          ...

          <div class="post-more-link text-center">
            <a class="btn" href="/2014/08/15/16-BOM-浏览器对象模型/#more" rel="contents">
              Read more &raquo;
            </a>
          </div>
        
      
    </div>

    <div>
      
    </div>

    <div>
      
    </div>

    <footer class="post-footer">
      

      

      
      
        <div class="post-eof"></div>
      
    </footer>
  </article>


    
  </section>

  
  <nav class="pagination">
    <a class="extend prev" rel="prev" href="/page/4/"><i class="fa fa-angle-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/4/">4</a><span class="page-number current">5</span><a class="page-number" href="/page/6/">6</a><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/6/"><i class="fa fa-angle-right"></i></a>
  </nav>



          </div>
          


          

        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      

      <section class="site-overview sidebar-panel  sidebar-panel-active ">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="//schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/photo.jpg"
               alt="Hongqin Ma" />
          <p class="site-author-name" itemprop="name">Hongqin Ma</p>
          <p class="site-description motion-element" itemprop="description">Spell at all costs， to rush you in the future. </p>
        </div>
        <nav class="site-state motion-element">
          <div class="site-state-item site-state-posts">
            <a href="/archives">
              <span class="site-state-item-count">68</span>
              <span class="site-state-item-name">posts</span>
            </a>
          </div>

          
            <div class="site-state-item site-state-categories">
              <a href="/categories">
                <span class="site-state-item-count">16</span>
                <span class="site-state-item-name">categories</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/tags">
                <span class="site-state-item-count">57</span>
                <span class="site-state-item-name">tags</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/HongqinMa" target="_blank" title="GitHub">
                  
                    <i class="fa fa-fw fa-github"></i>
                  
                  GitHub
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://twitter.com/HongqinMa" target="_blank" title="Twitter">
                  
                    <i class="fa fa-fw fa-twitter"></i>
                  
                  Twitter
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://www.facebook.com/profile.php?id=100006581058735" target="_blank" title="Facebook">
                  
                    <i class="fa fa-fw fa-facebook"></i>
                  
                  Facebook
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://www.zhihu.com/people/HirakuMa" target="_blank" title="知乎">
                  
                    <i class="fa fa-fw fa-share-alt"></i>
                  
                  知乎
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              Links
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/rubylouvre/" title="司徒正美" target="_blank">司徒正美</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/sanshi/" title="三生石上" target="_blank">三生石上</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.cnblogs.com/TomXu/" title="汤姆大叔" target="_blank">汤姆大叔</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://gold.xitu.io/" title="掘金" target="_blank">掘金</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://segmentfault.com/" title="segmentfault" target="_blank">segmentfault</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.jianshu.com/users/1cbb94e5ed4d/latest_articles" title="简书" target="_blank">简书</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://home.cnblogs.com/" title="博客园" target="_blank">博客园</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="https://www.awesomes.cn/" title="Awesomes" target="_blank">Awesomes</a>
                </li>
              
            </ul>
          </div>
        

      </section>

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2016</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Hongqin Ma</span>
</div>

<div class="powered-by">
  Powered by <a class="theme-link" href="https://hexo.io">Hexo</a>
</div>

<div class="theme-info">
  Theme -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Muse
  </a>
</div>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="busuanzi_container_site_pv">
    &nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;Page Views: <span id="busuanzi_value_site_pv"></span> 
</span>

        

<div class="busuanzi-count">

  <script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv"><i class="fa fa-user"></i><span class="busuanzi-value" id="busuanzi_value_site_uv"></span></span>
  

  
    <span class="site-pv"><i class="fa fa-eye"></i><span class="busuanzi-value" id="busuanzi_value_site_pv"></span></span>
  
  
</div>



        
      </div>
    </footer>

    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
    </div>
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  



  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.0.2"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.0.2"></script>



  
  

  

  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.2"></script>



  

  
    
  

  <script type="text/javascript">
    var duoshuoQuery = {short_name:"Hiraku"};
    (function() {
      var ds = document.createElement('script');
      ds.type = 'text/javascript';ds.async = true;
      ds.id = 'duoshuo-script';
      ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
      ds.charset = 'UTF-8';
      (document.getElementsByTagName('head')[0]
      || document.getElementsByTagName('body')[0]).appendChild(ds);
    })();
  </script>

  
    
    <script src="/lib/ua-parser-js/dist/ua-parser.min.js?v=0.7.9"></script>
    <script src="/js/src/hook-duoshuo.js"></script>
  






  
  

  

  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
  <script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  

  
  
  <!-- custom analytics part create by xiamo -->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<script>AV.initialize("PPmoIQxeu8Sd21h6Tl9TthNx-gzGzoHsz", "rTvbY2H7DvWzRipiBwn72RQ4");</script>
<script>
function showTime(Counter) {
  var query = new AV.Query(Counter);
  $(".leancloud_visitors").each(function() {
    var url = $(this).attr("id").trim();
    query.equalTo("url", url);
    query.find({
      success: function(results) {
        if (results.length == 0) {
          var content = '0 ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
          return;
        }
        for (var i = 0; i < results.length; i++) {
          var object = results[i];
          var content = object.get('time') + ' ' + $(document.getElementById(url)).text();
          $(document.getElementById(url)).text(content);
        }
      },
      error: function(object, error) {
        console.log("Error: " + error.code + " " + error.message);
      }
    });

  });
}

function addCount(Counter) {
  var Counter = AV.Object.extend("Counter");
  url = $(".leancloud_visitors").attr('id').trim();
  title = $(".leancloud_visitors").attr('data-flag-title').trim();
  var query = new AV.Query(Counter);
  query.equalTo("url", url);
  query.find({
    success: function(results) {
      if (results.length > 0) {
        var counter = results[0];
        counter.fetchWhenSave(true);
        counter.increment("time");
        counter.save(null, {
          success: function(counter) {
            var content =  counter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(counter, error) {
            console.log('Failed to save Visitor num, with error message: ' + error.message);
          }
        });
      } else {
        var newcounter = new Counter();
        newcounter.set("title", title);
        newcounter.set("url", url);
        newcounter.set("time", 1);
        newcounter.save(null, {
          success: function(newcounter) {
              console.log("newcounter.get('time')="+newcounter.get('time'));
            var content = newcounter.get('time') + ' ' + $(document.getElementById(url)).text();
            $(document.getElementById(url)).text(content);
          },
          error: function(newcounter, error) {
            console.log('Failed to create');
          }
        });
      }
    },
    error: function(error) {
      console.log('Error:' + error.code + " " + error.message);
    }
  });
}
$(function() {
  var Counter = AV.Object.extend("Counter");
  if ($('.leancloud_visitors').length == 1) {
    addCount(Counter);
  } else if ($('.post-title-link').length > 1) {
    showTime(Counter);
  }
}); 
</script>

  
</body>
</html>
